Trouble diagnosing problem

When it happened I took off the air filter and tried to squirt gas into the carb but nothing came out. It took about 2 1/2 hours to get to a gas station
You moved the throttle and nothing came out the accelerator pump shooters?
In that case, the next thing to check is if the carb bowl was empty or nearly empty of fuel.
Then the question is why. RRR suggestions are certainly possibilities.
Also check the fuel lines to and from the fuel pump.