There are 30 / 2 = <<30/2=15>>15 pictures hanging horizontally.

So there is a total of 15 + 5 = <<15+5=20>>20 pictures hanging either horizontally or haphazardly.

Therefore, there are 30 – 20 = <<30-20=10>>10 pictures hanging vertically.

# Answer

10
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Louise is hanging 30 of her pictures on the wall. She hangs some of them vertically, half of them horizontally, then hangs the remaining 5 pictures haphazardly. How many pictures did Louise hang vertically?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
10
Louise is hanging 30 of her pictures on the wall. She hangs some of them vertically, half of them horizontally, then hangs the remaining 5 pictures haphazardly. How many pictures did Louise hang vertically?
train