A rhombus has sides of length 20 units each. One of its diagonals measures 24 units. Calculate the perimeter of the rectangle formed by joining the midpoints of the sides of the rhombus. Let's think step by step and output the final answer within \boxed{}.
user