Golriz and Diane each have some beads. If Diane gives six of her beads to Golriz, then Golriz would then have twice as many beads as Diane. Instead, if Diane takes six beads from Golriz, then both would have the same number of the beads. What is the total number of beads that Golriz and Diane have?