Thank you for the report! :)
Yes, you're doing it correctly. Try to press right and left at same time, it should register both entries (at least I tried it in two different machines). But I changed both values to 25, I hope you can win it now :)
(Yes, I can reach 40, but just after 2 or 3 tries xD)