A box had twice as many grapes as a basket. After 2 kilograms were added to the basket it contained 0.5 kilograms more than the box. How many kilograms of grapes did the basket contain?