Let x be the smaller and y be the larger numbers.
"The larger of two numbers is equal to five times the smaller" means that

"Twice the larger plus to two times the smaller" means

And we can plug y=5x here to get

This must equal 40, so we have

And the larger number will be five times the smaller, i.e.
