<h3>
Answer: 
units is the exact length of AB</h3>
===============================================
Explanation:
Use the distance formula to get this answer. The idea is you subtract the x coordinates together, and do the same for the y coordinates as well. Square each result and add up those squares. The last step of the formula is to apply the square root to get the distance from A to B, which is also the length of segment AB.

Therefore, 
Answer:
p^2-14p+49
Step-by-step explanation:
Rent - 780
food - 900
medical - 450
clothes - 300
misc - 570