The legs of a right triangle measure 8 cm and 6 cm respectively. How long is the longest side of the triangle?

a.12
b.10
c.14
d.11