the underlying simple interest formula that you want to use here is
I = PRT
solving that equation for "R" yields
R = I / PT
for this particular scenario then that becomes
R = 180 / 1800 *2
R = 0.05 = 5%
meaning that the interest rate on Miguel's loan was 5%