If two triangles are similar, it means that the ratio of their corresponding sides is the same. By applying this to the given triangles, it means that
20/n = 16/24
By crossmultiplying, we have
n x 16 = 20 x 24
16n = 480
n = 480/16
n = 30
The second option is correct