Nikki is thinking of three numbers. The three numbers add up to 60. The middle number is twice as large as the smallest number. If you add up the two largest numbers and subtract the smallest number from the sum you get 40. Write a system of equations from the given information.