The gas law states that PV/T is a constant, where P=pressure, V=volume and T=temperature (degrees Kelvin). So P=1 atm, V=50cc and T=17+273=290ºK. The constant is therefore 50/290=5/29.
27ºC=300ºK. So when the parameters are changed we have P=(5/29)*300/10=150/29=5.17atm approx.
The units of volume and pressure are not important but temperature must be measured from absolute zero at -273ºC=0ºK. The answer has to be given in the same units for pressure and volume.