If we're balancing to whole numbers, we have to make sure the right side oxygen is even so let's start by multiplying that by 2:
___N2 + ___O2 => 2 N2O5
From there, we end up with four nitrogen and 10 oxygen left on the right side. We balance that would by dividing both by 2 (since they are both diatomic on the left side) and get the answer below:
2 N2 + 5 O2 => 2 N2O5
If fractions are allowed, you can leave the right side along and just solve each element on the left for their respective amount on the right side (2 N to 2 N and 2 O to 5 O):
1 N2 + 5/2 O2 => 1 N2O5