bob has $x$ dollars now. if pat gives bob a dollar, bob will have twice as many dollars as pat. of bob gave pat a dollar instead, they both will have the same number of dollars. what is the value of $x