Yes it's unethical. Second, why do you think he would accept your numbers if you told Bob a number and the contractor said he would only pay half? Were you telling Bob a high number so you could undercut him.
Why would you even have to ask if its unethical?