Option (B) is correct.
Checking the Assertion. The perfect squares from 1 to 30 are 1,4,9,16,25:
P(perfect square)=305=61
A is true.
Checking the Reason. Factors come in pairs (d,dn), except when d=dn, which happens only for a perfect square. So a perfect square has an odd number of factors (for example, 16 has 1,2,4,8,16). R is true.
Does R explain A? No. The probability comes from counting the 5 squares among 30 numbers; the number of factors a square has plays no part in that count.
Both true, but R does not explain A ⇒ Option (B).