How to pass values from visualforce to Apex

Welcome to WordPress. This is your first post. Edit or delete it, then start writing! Controller Class:

Controller class: