For the first one, they made a typo.
For the second:
Consider E = mc2 ---hence----> m = E/c2
p= mv
p = (E/c2).v from above
since the velocity of EMR is always c, v=c so:
p = E/c
a more convenient way of expressing this may be
p = h/wavelength since E = hf =...