If two angles are vertically opposite, then it means that they are equal. Given that angles B and P are vertically opposite angles, it means that
angle B = angle P
If angle B measures (2x + 5) and angle P measures 105, then
2x + 5 = 105
2x = 105 - 5 = 100
x = 100/2
x = 50