Coming to concepts of prime factorization
any number can be expressed as powers of products of prime numbers ,
also the thing to note is that, the number of divisors of a number thus can be obtained by this prime factorization, which is product of (powers+1)
let a=2^a*3^b....
so no of divisor =( a+1)(b+1)....
here let
p has r divisor
r=(a+1)(b+1)k
28=(a+2)(b+1)k. where k is contribution from other primes than 2 and 3
similarly,
30 =(a+1)(b+2)k
by trial and error
28=1*4*7
30=1*6*5
thus x=5
y =3
k=1
so 3p has (a+2)(b+2)k divisor
=35 divisor