Once you find out that AB is 10 units, just add together: 10+10+10+6+4+8=48 48 units is your final answer.
BTW I have the image for the problem.