In rectangle ABCD line EF joins the midpoint of line AB and BC. Line BE equals 5, line BF equals 12, find line EF, line AC and perimeter of the rectangle.