Calculate the diameter d and dimensions A and B for the template shown. All dimensions are in millimetres.