Let the numbers be x and y.
x*y=HCF*LCM=6*60=360
thus
y=360/x
next we find the list of combinations of x and y and test if they satisfy the conditions above:
(6,60),(12,30),(18,20),(24,15)
out of the above, only (6,60) and (12,30) satisfy both conditions. Thus our answer is:
(6,60) or (12,30)