What is the value of p when 2p+10=24 ?