After reflecting on his loss, the pirate remembers that, on the first day, he actually only found 6 rubies, not 28. On the second day, he still found a number of rubies equal to what he found on the first day plus an additional 21 rubies. How many rubies did the pirate have in total after the second day, taking this into account?