hit upon

US /hɪt əˈpɑːn/
UK /hɪt əˈpɑːn/
"hit upon" picture
1.

to discover something by chance

:
She hit upon the perfect solution to the problem.
They hit upon a new method for increasing efficiency.