A resident bidder shall be allowed a preference against a nonresident from a state which gives or requires a preference to bidders from that state. The preference shall be equal to the preference given or required by the state of the nonresident bidders. Where the lowest responsible bid from a resident bidder is equal in all respects to one from a nonresident bidder from a state which has no preference law, the resident bidder shall be awarded the contract.