p = 2b + 2h/4 for b literal equation