Natalie has 26 metres of blue wire and 12 metres of green wire. She needs to cut both wires into smaller pieces so that all of the pieces are the same length and there is no wire left over. The length of each piece must be a whole number.
What is the longest she can make each smaller piece of wire? Give your answer in metres.