Here, the given terms are:
H is plank's constant, c is the speed of light and G is gravitational constant.
we know, the energy of a photon is given as:
E=hcwavelength
the dimension of hc = dimension of energy × length
dimension of energy =[ML2T−2]
dimension of wavelength=[L]
so, dimension of hc=[ML2T−2][L]=[ML3T−2]
now, dimension of G :
we know, gravitational force ,
F=GMmr2
so, dimension of G=F×r2Mm
dimension of force=[MLT−2]
dimension of r2=[L2]
dimension of M=[M]
dimension of m=[M]
so, dimension of G=[MLT−2][L2]/[M][M]
=[M−1L3T−2]
now, dimension of hc/G = dimension of hc/dimension of G
=[ML3T−2]/[M−1L3T−2]
=[M2]