He paid for 20/10=<<20/10=2>>2 hours

That means the hourly fee was 30*2=$<<30*2=60>>60

So the total cost was 60+20=$<<60+20=80>>80

# Answer

80
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Jefferson hires a carriage to go to the church.  It is 20 miles away.  The horse can go 10 miles per hour.  It cost $30 per hour plus a flat fee of $20.  How much did he pay for the carriage?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
80
Jefferson hires a carriage to go to the church.  It is 20 miles away.  The horse can go 10 miles per hour.  It cost $30 per hour plus a flat fee of $20.  How much did he pay for the carriage?
train