Basement shower drain backing up when washing machine runs
You likely have a partial blockage down the line from these two drains, or maybe where the two lines are joined.  First thing to try would be a long snake to see if you can clear the line from either of your drains.+