Hey man the calculator can just do it all, i'm gonna assume you have the same calc as me for this (Ti-nspire cx), if you go to the menu there should be a subheading called probability which contains a few different helpful things for probability, in here should be a 'combinations' button which comes up as 'nCr()'. What you want to put in here is the top number, a comma, and then the bottom number. e.g. the binomial coefficient for your question would be nCr(n,5).
Knowing this we can just insert the equation into our calculator and solve for n.
solve(nCr(n,5).(0.6)^5.(0.4)^n-5=0.25,n) and you should get either 6.7856 or 9.01913
(disclaimer: this may be completely wrong but that's how I would solve that question, maybe we should wait for someone like eulerfan101 to come and show us both how to do it)
Edit: I found a similar question in the essentials textbook Ch 15D question 3 which asks for the minimum number of shots required for the probability to be greater than 25%, meaning that you would take the smallest integer possible from the calculator answers which would be 7 shots (even if the answer was 6.000000001 it would still need to be 7 shots).