A vernier calipers has a sliding scale of 20 divisions that spans 19 divisions of the fixed scale, and each fixed division is 1 mm. With the jaws closed, the 4th vernier division lines up with a fixed mark. A bar is held between the jaws. The fixed scale reads 31 mm, and the 13th vernier division lines up with a fixed mark. What is the length of the bar?