You're going to have some fun shifting from metric to imperial, but in short, the first number is your rim size, or the inner diameter of the tire, which doesn't have any wiggle room. the second number is the rim width, so 18x10. Easy, because we like inches.
Too bad your tires don't
Let's pick on the 235 because it's slightly easier math. So the width of that tire is 235mm, or 9.3" (275/25.2) #/mm in a inch. The 50 is the aspect ratio, which is the percentage of the side wall, measured as a proportion of the width. So 50% of 9.3" is 4.65", meaning it's 4.65" from where the rim leaves off, making your sidewall to the ground. That'll mean your overall tire height will be rim (18") + 9.3 (4.65 on the bottom, 4.65 on the top) or 27.3". For the rear, it'd be 275 (10.9") wide, slightly thinner sidewalls of 40% for 4.36" per, which then gives you a 26.7" ride height (18 + 4.36 + 4.36). Depending on how you're driving, you might want to try a different place if that's all they have, because generally speaking 50% ratio is something more for larger vehicles that need that extra cushion, but at the same time, you might not enjoy a 30% aspect which gets thinner and doesn't absorb the bumps in the same way, however, if you're doing auto-x or road racing, you want less sidewall flexing, and don't concern yourself so much with the road manners. The other magic number is 27" as I believe that's what the stock tire height was, so if you get shorter tires, your speedo will think you're going faster than you are, and if you get taller tires, your speedo will think you're going slower than you are. Being a +/- .1 or .2 here and there isn't too bad, but if you really start pushing it like 26 or 28", well, try your GPS or an App like Waze to get an idea of how far it'll drift. For instance my speedo says I'm doing 80 when it's really 78.
I'm sure others will have their feelings, but I'd think 255/45/18 and 285/40/18 might be a slightly better combo. Do remember that while it's 30mm wider in the rear, it's also a 1" wider rim.