Trying to figure out how to split a restaurant bill often puts math skills and friendships to a test. Google has applied for a patent of a system that helps groups calculate and pay for joint expenses.