p:0504030201 place ways Total no, of ways =5!=120 Since all numbers are >20,000 ∴ all numbers 2,3,5,7,9 can come at first place. q:0304030201 place ways Total no. of ways =3×4!=72 ( ∵2 and 9 can not be put at first place) So, p:q=120:72=5:3