A farmer has four fields to fence. Each field is shown with its size. Fields A and B are rectangles. Work out how many metres of fencing are needed for each field.