An elementary approach to boundary value problems at resonance