Fortunately both of these people realized that this couldn't be Yahoo and shut down their computers.
It is EXTREMELY rare for a legitimate company to go from computer chat to a phone call without extensive troubleshooting first. Additionally any company you do call, especially like Yahoo, would, almost always, have a long hold time.
Always be cautious whenever someone you don't know wants remote computer access.