Well the first one's kind of confusing because there are two point ps but one of them would be 5 and the other would be 23
The second one has a total length and a partial length so when you subtract the total from the partial you get the answer
30-7=23
23 is your answer