A shape is made up of a triangle and a rectangle. The perimeter of ABCDE is 46cm.

What is the length of AB?

42